import { configureStore } from "@reduxjs/toolkit";
import { homeSlice } from "../views/home/home.slice";
import { SetSlice } from "../views/set/set.slice";

export const rootReducer = {
  home: homeSlice.reducer,
  set:SetSlice.reducer
};

export const store = configureStore({
  reducer: rootReducer,
});

export type AppDispatch = typeof store.dispatch;

export type RootState = ReturnType<typeof store.getState>;
